<?php

namespace app\common\middleware;

use liketp\Request;
use liketp\Response;
use liketp\contract\MiddlewareOnion;

class ControllerIndex extends MiddlewareOnion
{
    public function handle(callable $next, Request $req, ?array $params = []): Response
    {
        dump('controller middleware index before');
        $res = $next($req);
        dump('controller middleware index after');
        return $res;
    }
}
